/**
 * 
 */
package it.robertobifulco.ias.test;

import it.robertobifulco.ias.PermissionHandler;
import it.robertobifulco.ias.UnauthorizedOperationException;
import it.robertobifulco.ias.principalmanager.Principal;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * 
 */
public class PermissionHandlerTEST implements PermissionHandler {

	@Override
	public void verifyPermission(String operationName, Principal principal,
			Object infos) throws UnauthorizedOperationException {

		if (!principal.getId().equals(
				(String)infos)) {
			throw new UnauthorizedOperationException();
		}

	}

	@Override
	public void verifyPermission(String operationName, Principal principal)
			throws UnauthorizedOperationException {
		// TODO Auto-generated method stub
		
	}

}
